global	start, _putc
extern	main

;[SECTION .data]
SelectorVideo:	dw	0
MemorySize:		dd	0
EIP_0:			dd	0

;[SECTION .code]
start:

_DEAL_DATA:
	; 参数一
	pop	eax
	mov [SelectorVideo], eax
	; 参数二
	pop	eax
	mov [MemorySize], eax
	; 参数三
	pop	eax
	mov [EIP_0], eax

_TOCPRO_MAIN:
	mov eax, [EIP_0]
	push	eax
	mov	eax, [MemorySize]
	push	eax
	call	main

	jmp	FIND

; 引入部分汇编函数
_FUNCTIONS:	
%include "start_func.asm"

FIND:
	hlt
	jmp FIND
